import axios from '@/fetch'

export function delcomment(data) {
  return axios({
    url: "/comment/delete",
    headers: {'Content-Type': 'application/json'},
    method: "post",
    params: data
  })
}

export function getcomment(data) {
  return axios({
    url: "/comment/findall",
    headers: {'Content-Type': 'application/json'},
    method: "post",
    params: data
  })
}

export function selected(data) {
  return axios({
    url: "/comment/changecommentstatus",
    headers: {'Content-Type': 'application/json'},
    method: "post",
    params: data
  })
}
export function audit(data) {
  return axios({
    url: "/comment/changeauditstatus",
    headers: {'Content-Type': 'application/json'},
    method: "post",
    params: data
  })
}

export function getcommentid(data) {
  return axios({
    url: "/comment/findone",
    headers: {'Content-Type': 'application/json'},
    method: "post",
    params: data
  })
}

export function ctqueryid(data) {
  return axios({
    url: "/comment/findbynumber",
    headers: {'Content-Type': 'application/json'},
    method: "post",
    params: data
  })
}
